#include<iostream>
#include<vector>
using namespace std;
void searchMaxMin(vector<int>& v){
    int max=v[0];
    int min=v[0];
    int z=0;
    for(int i=0;i<v.size();i++){
         
            
        if(max<v[i]){
            max=v[i];
            z++;
            //cout<<z<<endl;
        }
       
        if(min>v[i]){
            min=v[i];
            z++;
        }
        

    }
    cout<<z<<" ";
    cout<<"max:"<<max<<endl;
    cout<<"min:"<<min<<endl;

}
int main(){
vector<int> a;
for(int i=0;i<=9;i++){
    a.push_back(i);
   // cout<<a[i];
}
searchMaxMin(a);
}